package com.gopay.common.domain.bank.pab.ebank;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;

import com.gopay.common.domain.bank.BaseMessage;

/**
 * 深发展银行订单回应接口（适用与B2B、B2C）
 * 
 * @author WangHongFei
 * 
 */
public class PabQueryOrdersMessageRes extends BaseMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String status;// 交易返回状态，如果为“0”，说明交易正常返回，否则交易返回错误
	private String errDesc;// 如果交易返回错误，本属性保存错误的描述
	private double sum;// 返回的订单总额
	private int count;// 返回的订单数
	private ArrayList orders;// 返回的订单明细
	private BigDecimal orderAmount;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getErrDesc() {
		return errDesc;
	}

	public void setErrDesc(String errDesc) {
		this.errDesc = errDesc;
	}

	public double getSum() {
		return sum;
	}

	public void setSum(double sum) {
		this.sum = sum;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public ArrayList getOrders() {
		return orders;
	}

	public void setOrders(ArrayList orders) {
		this.orders = orders;
	}

	@Override
    public String toString() {
		StringBuffer b = new StringBuffer(this.getClass().getName() + ": {\r\n");
		b.append("status: " + status + "\r\n");
		b.append("errDesc: " + errDesc + "\r\n");
		b.append("sum: " + sum + "\r\n");
		b.append("count: " + count + "\r\n");
		b.append("orders: " + orders + "\r\n");
		b.append("orderAmount: " + orderAmount + "}");
		return b.toString();
	}

	public BigDecimal getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}
}
